
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>demo</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="jlib/windows/jdialog.css" type="text/css" />
<script src="js/jquery.js" type="text/javascript"></script>
<script src="jlib/windows/jdialog.js" type="text/javascript"></script><SCRIPT LANGUAGE="JavaScript">
<!--
$(function(){
	$("#more_search").click(function(){
		$(this).boxto({title:"查询", url: this.href,width:650, height:440, moveable:true});
		return false;
	});				
	$(".view").click(function(){
		$(this).boxto({title:"编辑", url: this.href,width:650, height:440, moveable:true});
		return false;
	});
	$("#new").click(function(){
		$(this).boxto({title:"新建", url: this.href,width:650, height:440, moveable:true});
		return false;
	});
	$("#xzqh").change(function(){
		var qhdm = $(this).val();
		$("#result").find(".row").each(function(){
			if(qhdm=="all"){
				$(this).show();
			}else{
				if($(this).attr("value")!=qhdm){
					$(this).hide();
				}else{
					$(this).show();
				}
			}
		});
	});
});

function closediv() {
	$.boxit.closeAll();
}
function del(){
	var flg = false;
	$("input[name='sbtddms']").each(function(){
		if($(this).attr("checked")){
			flg =true;
			return;
		}
	});
	if(!flg){
		alert("请选择");
		return;
	}
	if(window.confirm("确认删除")){
		$("form").submit();
	}
}
//-->
</SCRIPT>
</head>
<body>
<div id="btnsite">
  <table width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="30" height="24" align="center"><img src="images/add.gif" /></td>
      <td width="70" align="left"><a id="new" href="sbzb/edit.htm?sbtddm=0&sbid=${qysbxx.sbid}&newFlg=new">增加</a></td>
      <td width="30" align="center"><img src="images/modification.gif" /></td>
      <td width="70" align="left">修改</td>
      <td width="30" align="center"><img src="images/delete.gif" /></td>
      <td width="70" align="left"><a href="javascript:del();">删除</a></td>
    </tr>
  </table>
</div>

<table width="99%" cellpadding="0" cellspacing="0" class="table" >
<form action="sbzb/delete.htm" method="post">
<input type="hidden" name="sbid" value="${qysbxx.sbid}">
  <tr>
    <td width="17%" align="center" class="rowColor rowColorRight">企业名称</td>
    <td width="38%" class="row rowLeft">${qyxx.qymc}</td>
    <td width="17%" align="center" class="rowColor rowColorRight">监控点名称</td>
    <td width="38%" class="row rowLeft">${qysbxx.sbmc}</td>
  </tr>
</table>
<table id="result" width="99%" cellpadding="0" cellspacing="0" class="table" >
 <tr>
    <th colspan="5">指标列表</th>
  </tr>
  <tr value="">
    <td width="63"  class="gridSubTitle">序号</td>
    <td width="1000"  class="gridSubTitle"> 指标名称</td>
    <td width="1000"  class="gridSubTitle"> 指标代码</td>
    <td width="140"  class="gridSubTitle">数据通道</td>
    <td width="96"  class="gridSubTitle">管理</td>
  </tr>
  <#list list as sbzb>
  <tr class="row" >
    <td align="center">
    <input type="checkbox" name="sbtddms" value="${sbzb.sbtddm}">
    ${sbzb_index+1}</td>
    <td class="gridCenter">${sbzb.zbmc}</td>
    <td class="gridCenter">${sbzb.zbdm}</td>
    <td class="gridCenter">${sbzb.sbtddm}</td>
    <td class="gridCenter"><a class="view" href="sbzb/edit.htm?sbid=${sbzb.sbid}&sbtddm=${sbzb.sbtddm}">编辑</a></td>
  </tr>
  </#list>
  </form>
</table>
</body>
</html>
